var webpack = require('webpack');
var WebpackDevServer = require("webpack-dev-server");

var compiler = webpack({
  entry: {
    app: [
      "webpack-dev-server/client/",
      "webpack/hot/only-dev-server", "./a.js"]
  },
  output: {
      path: __dirname + "/dist",
      publicPath: "http://localhost:9999/",
      filename: "bundle.js"
  },
  plugins: [
    new webpack.HotModuleReplacementPlugin()
  ]
});

var server = new WebpackDevServer(compiler, {
  quiet: false,
  noInfo: false,
  contentBase: './dist',
  hot: true,
  inline: true,
  stats: { colors: true }
}).listen(9999, 'localhost', function(){});

